package excecoes;

public class ErroLexico extends Exception {
	String msg;
	int index, lenght;
	boolean comentario, literal;

	public ErroLexico(String msg, int index, int lenght) {
		super();
		this.msg = msg;
		this.index = index;
		this.lenght = lenght;
	}
	
	


	public ErroLexico(String msg, boolean comentario, boolean literal, int index) {
		super();
		this.msg = msg;
		this.comentario = comentario;
		this.literal = literal;
		this.index = index;
	}



	

	public boolean isComentario() {
		return comentario;
	}




	public boolean isLiteral() {
		return literal;
	}




	public int getIndex() {
		return index;
	}


	public void setIndex(int index) {
		this.index = index;
	}


	public int getLenght() {
		return lenght;
	}


	public void setLenght(int lenght) {
		this.lenght = lenght;
	}





	public String getMessage(){
		return msg;
	}

}
